package com.wanmait.demo.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.demo.mapper.OrderCommentMapper;
import com.wanmait.demo.pojo.OrderComment;
import com.wanmait.demo.service.OrderCommentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class OrderCommentServiceimpl implements OrderCommentService {
    //zjj
    @Override
    public void updaState(Integer stateId,Integer repairOrderId) {
        orderCommentMapper.updateState(stateId ,repairOrderId);
    }
    //zjj
    @Override
    public void insertOneComment(OrderComment object) {
        orderCommentMapper.zjjinsertSelective(object);
    }




    @Resource
    private OrderCommentMapper orderCommentMapper;
    @Override
    public void insert(OrderComment object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(OrderComment object) {

    }

    @Override
    public OrderComment findById(Integer id) {
        return null;
    }

    @Override
    public List<OrderComment> findAll() {
        return null;
    }

    @Override
    public PageInfo<OrderComment> findPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public List<OrderComment> findComment(Integer workerId) {
        return orderCommentMapper.selectComment(workerId);
    }
}
